<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>JAVA面试总结 | du小站</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="Java面试总结‌">
<meta property="og:type" content="article">
<meta property="og:title" content="JAVA面试总结">
<meta property="og:url" content="https://wenjies.github.io/2017/05/17/java%E9%9D%A2%E8%AF%95%E6%80%BB%E7%BB%93/index.html">
<meta property="og:site_name" content="du小站">
<meta property="og:description" content="Java面试总结‌">
<meta property="og:locale">
<meta property="article:published_time" content="2017-05-17T09:28:00.000Z">
<meta property="article:modified_time" content="2024-12-02T01:49:28.024Z">
<meta property="article:author" content="杰">
<meta property="article:tag" content="面试">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="du小站" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
  
<meta name="generator" content="Hexo 7.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">du小站</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/" id="subtitle">我们笑着说再见，却深知再见遥遥无期。</a>
        </h2>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
        
          <a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
        
        <a class="nav-icon nav-search-btn" title="Suche"><span class="fa fa-search"></span></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Suche"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://wenjies.github.io"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-java面试总结" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2017/05/17/java%E9%9D%A2%E8%AF%95%E6%80%BB%E7%BB%93/" class="article-date">
  <time class="dt-published" datetime="2017-05-17T09:28:00.000Z" itemprop="datePublished">2017-05-17</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E7%BB%8F%E9%AA%8C/">经验</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      JAVA面试总结
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h1 id="关于业务"><a href="#关于业务" class="headerlink" title="关于业务"></a>关于业务</h1><hr>
<h3 id="自我介绍"><a href="#自我介绍" class="headerlink" title="自我介绍"></a>自我介绍</h3><ol>
<li>准备1-2个重点项目，简单描述项目内容 &amp; 自己负责的模块，遇到的技术难点 &amp;<br>是如何解决的。常见的技术难点：并发问题、分布式系统一致性问题、接口幂等问题、OOM分析、redis缓存etc.</li>
<li>自己所负责项目的各项业务的指标。例如，存量数据量级、QPS、团单成交量、公司的营业额之类的也可以关注一下，会被问到。</li>
<li>注意点：一定要对简历上写的业务非常熟悉。面试官会对某个业务细节内容进行深入询问，也会设置某些场景要求给出解决方案。</li>
</ol>
<h1 id="关于技术"><a href="#关于技术" class="headerlink" title="关于技术"></a>关于技术</h1><hr>
<h3 id="自我介绍-1"><a href="#自我介绍-1" class="headerlink" title="自我介绍"></a>自我介绍</h3><ol>
<li>自我介绍的时候可以介绍下自己比较熟悉的技术内容，从而引导面试官对自己擅长的技术进行深入提问。（e.g.我JAVA基础扎实，对JVM原理有一定的了解，熟悉Spring,ibatis等开源框架;<br>熟练使用面向对象设计原则，掌握设计模式及应用场景; 熟练使用底层中间件、分布式技术(包括缓存、消息系统等)<br>，并对原理有一定的了解; ）</li>
</ol>
<h3 id="被提问过的技术内容总结"><a href="#被提问过的技术内容总结" class="headerlink" title="被提问过的技术内容总结"></a>被提问过的技术内容总结</h3><blockquote>
<p>**<code>Java语言基础</code>**，各种数据结构(Linklist, ArrayList, HashMap, TreeMap etc) 。其中，hashmap是提问频率最高的，几乎一定会被问到：</p>
</blockquote>
<ul>
<li>Hashmap是基于什么数据结构实现的「数组+链表」</li>
<li>Hashmap和hashtable的区别是什么「多线程问题，concurrenthashmap」</li>
<li>Hashmap默认大小是多少？什么时候会resize？</li>
</ul>
<hr>
<blockquote>
<p><strong><code>多线程相关</code></strong></p>
</blockquote>
<p>。主要掌握Executor创建线程池时的各种参数，各种BlockingQueue的区别以及适用场景。参考链接：<a target="_blank" rel="noopener" href="http://www.infoq.com/cn/articles/java-threadPool">http://www.infoq.com/cn/articles/java-threadPool</a></p>
<hr>
<blockquote>
<p>**<code>SQL优化</code>**主要会问一些跟索引相关的内容：</p>
</blockquote>
<ul>
<li>聚集索引&amp;非聚集索引：<a target="_blank" rel="noopener" href="http://www.cnblogs.com/AK2012/archive/2013/01/04/2844283.html">http://www.cnblogs.com/AK2012/archive/2013/01/04/2844283.html</a></li>
<li>索引实战，索引设计问题e：<br><a target="_blank" rel="noopener" href="http://blog.csdn.net/gprime/article/details/1687930">http://blog.csdn.net/gprime/article/details/1687930</a></li>
</ul>
<hr>
<blockquote>
<p><strong><code>JVM相关</code></strong>(JVM内存模型;ClassLoder机制;GC场景+机制;JVM编译优化)</p>
</blockquote>
<ul>
<li>参考书：《深入理解Java虚拟机 》</li>
<li>java类加载器参考链接：<a target="_blank" rel="noopener" href="https://www.ibm.com/developerworks/cn/java/j-lo-classloader/">https://www.ibm.com/developerworks/cn/java/j-lo-classloader/</a></li>
<li>GC参考链接：<a target="_blank" rel="noopener" href="http://blog.csdn.net/z69183787/article/details/51131629">http://blog.csdn.net/z69183787/article/details/51131629</a></li>
</ul>
<hr>
<blockquote>
<p><strong><code>各种中间件</code></strong></p>
<ol>
<li>**<code>RPC服务框架</code>**（同步阻塞&#x2F;同步非阻塞&#x2F;异步非阻塞；BIO；NIO；NIO的4种调用方式、实现方式selector）</li>
</ol>
</blockquote>
<ul>
<li>点评pigeon资料：<a target="_blank" rel="noopener" href="http://ppt.geekbang.org/slide/show/424">http://ppt.geekbang.org/slide/show/424</a></li>
<li>主流框架结构：<a target="_blank" rel="noopener" href="https://wiki.sankuai.com/pages/viewpage.action?pageId=725008629">https://wiki.sankuai.com/pages/viewpage.action?pageId=725008629</a></li>
<li>序列化的方式（PB、Hession、thrift、java serializable序列化对象大小，序列化，反序列化时间的比较）</li>
<li>Netty是怎么实现RPC的</li>
</ul>
<blockquote>
<ol start="2">
<li>**<code>消息中间件</code>**：Swallow kafka</li>
</ol>
</blockquote>
<ul>
<li>如何实现系统解耦；</li>
<li>如何实现业务操作 和 消息发送的一致性；</li>
<li>如何解决消息中间件与使用者的强依赖问题；</li>
<li>JMS消息模型</li>
</ul>
<blockquote>
<ol start="3">
<li>**<code>KV中间件squirrel</code>**（需要了解redis的知识）</li>
</ol>
</blockquote>
<ul>
<li>缓存穿透，缓存击穿，缓存雪崩解决方案分析<a target="_blank" rel="noopener" href="http://blog.csdn.net/zeb_perfect/article/details/54135506">http://blog.csdn.net/zeb_perfect/article/details/54135506</a></li>
<li></li>
</ul>
<p>点评的squirrel：<a target="_blank" rel="noopener" href="https://wiki.sankuai.com/pages/viewpage.action?pageId=610280467&preview=/610280467/610280452/Squirrel%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB.pptx">https://wiki.sankuai.com/pages/viewpage.action?pageId=610280467&amp;preview=%2F610280467%2F610280452%2FSquirrel%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB.pptx</a></p>
<ul>
<li>redis常见面试题&#96;**：<a target="_blank" rel="noopener" href="http://blog.csdn.net/guchuanyun111/article/details/52064870">http://blog.csdn.net/guchuanyun111/article/details/52064870</a></li>
</ul>
<blockquote>
<ol start="4">
<li>**<code>zebra</code>**数据库中间件</li>
</ol>
</blockquote>
<ul>
<li>垂直、水平拆分数据库；</li>
<li>数据库分布式事务（重点）：ACID、CAP理论、二段式提交，三段式提交一致性Hash，Paxos算法</li>
<li>数据层访问的流程</li>
<li>ORM框架之间的比较</li>
</ul>
<blockquote>
<ol start="5">
<li>**<code>提问低频的一些中间件</code>**：监控平台CAT、HTTP层 SLB、HLB、统一任务调度平台Crane<br>  （需要稍作了解，比如cat监控平台有哪些参数，分别是什么作用；比如CAT是如何实现服务调用链路的监控，阿里是在接口上打注解，用AOP实现的）</li>
</ol>
</blockquote>
<hr>
<blockquote>
<p>**<code>Spring相关</code>**：</p>
</blockquote>
<ol>
<li>**<code>AOP实现原理</code>**（JDK动态代理）<br>延伸：JDK动态代理是怎么实现的？（反射http:<br>&#x2F;&#x2F;rejoy.iteye.com&#x2F;blog&#x2F;1627405）、JDK动态代理跟CGlib有什么区别（JDK动态代理只能代理接口）、JDK动态代理跟CGlib的效率哪个比较高？为什么？</li>
<li><strong><code>IOC原理</code></strong></li>
</ol>
<hr>
<blockquote>
<p><strong><code>无规律可循的被提问到的内容：</code></strong></p>
</blockquote>
<ol>
<li>**<code>SSO登录原理</code>**：<br>参考链接：<a target="_blank" rel="noopener" href="https://wiki.sankuai.com/pages/viewpage.action?pageId=737929535">https://wiki.sankuai.com/pages/viewpage.action?pageId=737929535</a></li>
<li><strong><code>权限系统的设计原理</code></strong></li>
<li><strong><code>你知道哪些设计模式，有哪些是在工作中用到的？如何实现一个简单的单例、Spring多例怎么实现（@Scope注解）</code></strong></li>
<li><ul>
<li>*<code>算法题目「参考校招面试，只要基础不差就可以，不用特意准备」（如何实现一个String的字母倒转、多个String模式匹配、信号量是什么，java中是哪个包实现的、汉诺塔问题）</code><br>**</li>
</ul>
</li>
</ol>
<hr>
<h4 id="最后的面试官的提问"><a href="#最后的面试官的提问" class="headerlink" title="最后的面试官的提问"></a>最后的面试官的提问</h4><blockquote>
<h6 id="1-你平时关注哪些技术网站（InfoQ、segmentfault、github…）"><a href="#1-你平时关注哪些技术网站（InfoQ、segmentfault、github…）" class="headerlink" title="1.你平时关注哪些技术网站（InfoQ、segmentfault、github…）"></a>1.你平时关注哪些技术网站（InfoQ、segmentfault、github…）</h6><h6 id="2-你对自己未来的职业发展有什么看法"><a href="#2-你对自己未来的职业发展有什么看法" class="headerlink" title="2.你对自己未来的职业发展有什么看法"></a>2.你对自己未来的职业发展有什么看法</h6><h6 id="3-你有什么问题想问我的吗"><a href="#3-你有什么问题想问我的吗" class="headerlink" title="3.你有什么问题想问我的吗"></a>3.你有什么问题想问我的吗</h6></blockquote>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://wenjies.github.io/2017/05/17/java%E9%9D%A2%E8%AF%95%E6%80%BB%E7%BB%93/" data-id="cm3zaz9c3000atgu6dw5feo6e" data-title="JAVA面试总结" class="article-share-link"><span class="fa fa-share">Teilen</span></a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E9%9D%A2%E8%AF%95/" rel="tag">面试</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2017/05/22/Spring%E6%89%A9%E5%B1%95/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          Spring扩展
        
      </div>
    </a>
  
  
    <a href="/2016/12/13/spring%E6%95%B4%E5%90%88ActiveMQ/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title">spring整合ActiveMQ</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Kategorien</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/AJAX/">AJAX</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/JAVA/">JAVA</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MQ/">MQ</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Mybatis/">Mybatis</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Redis/">Redis</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Spring/">Spring</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/zookeeper/">zookeeper</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/">分布式事务</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%B7%A5%E5%85%B7/">工具</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%BB%8F%E9%AA%8C/">经验</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/aop/" rel="tag">aop</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/bean/" rel="tag">bean</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/" rel="tag">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/" rel="tag">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/js/" rel="tag">js</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/micrometer/" rel="tag">micrometer</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mvc/" rel="tag">mvc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mybatis/" rel="tag">mybatis</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mysql/" rel="tag">mysql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/redis/" rel="tag">redis</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/rocketmq/" rel="tag">rocketmq</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/spring/" rel="tag">spring</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/zookeeper/" rel="tag">zookeeper</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E4%BA%8B%E5%8A%A1/" rel="tag">事务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/" rel="tag">分布式事务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/" rel="tag">单元测试</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" rel="tag">基础知识</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1/" rel="tag">定时任务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%89%A9%E5%B1%95/" rel="tag">扩展</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%95%B4%E5%90%88/" rel="tag">整合</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E9%9D%A2%E8%AF%95/" rel="tag">面试</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/aop/" style="font-size: 10px;">aop</a> <a href="/tags/bean/" style="font-size: 10px;">bean</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/java/" style="font-size: 10px;">java</a> <a href="/tags/js/" style="font-size: 10px;">js</a> <a href="/tags/micrometer/" style="font-size: 10px;">micrometer</a> <a href="/tags/mvc/" style="font-size: 13.33px;">mvc</a> <a href="/tags/mybatis/" style="font-size: 10px;">mybatis</a> <a href="/tags/mysql/" style="font-size: 20px;">mysql</a> <a href="/tags/redis/" style="font-size: 10px;">redis</a> <a href="/tags/rocketmq/" style="font-size: 10px;">rocketmq</a> <a href="/tags/spring/" style="font-size: 10px;">spring</a> <a href="/tags/zookeeper/" style="font-size: 10px;">zookeeper</a> <a href="/tags/%E4%BA%8B%E5%8A%A1/" style="font-size: 10px;">事务</a> <a href="/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/" style="font-size: 10px;">分布式事务</a> <a href="/tags/%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/" style="font-size: 10px;">单元测试</a> <a href="/tags/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" style="font-size: 16.67px;">基础知识</a> <a href="/tags/%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1/" style="font-size: 10px;">定时任务</a> <a href="/tags/%E6%89%A9%E5%B1%95/" style="font-size: 10px;">扩展</a> <a href="/tags/%E6%95%B4%E5%90%88/" style="font-size: 10px;">整合</a> <a href="/tags/%E9%9D%A2%E8%AF%95/" style="font-size: 10px;">面试</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2025/01/">January 2025</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/11/">November 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">October 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">September 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">July 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/">May 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">December 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">November 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/">October 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/">August 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">May 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">March 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">February 2016</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2025/01/10/spring%20boot3%E6%95%B4%E5%90%88ELK%E5%AE%9E%E7%8E%B0%E6%97%A5%E5%BF%97%E6%90%9C%E7%B4%A2/">spring boot3整合ELK实现日志搜索</a>
          </li>
        
          <li>
            <a href="/2025/01/10/spring%20boot3%E6%95%B4%E5%90%88%E9%93%BE%E8%B7%AF%E8%BF%BD%E8%B8%AA/">spring boot3整合链路追踪</a>
          </li>
        
          <li>
            <a href="/2024/11/27/hexo%E4%BD%BF%E7%94%A8/">hexo使用</a>
          </li>
        
          <li>
            <a href="/2017/10/17/spring%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/">spring单元测试</a>
          </li>
        
          <li>
            <a href="/2017/09/16/jsonp%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82/">jsonp跨域请求</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2025 杰<br>
      <a href="https://beian.miit.gov.cn/" target="_blank">蜀ICP备19041392号-1</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.6.4.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>